package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "修改用户信息的DTO",description = "修改用户的信息")
public class UserUpdateDTO {
//    @NotBlank
    @ApiModelProperty(value = "用户名",name = "username",example = "rose",required = true)
    private String username;
    @NotBlank
    @ApiModelProperty(value = "联系电话",name = "phone",example = "12345678965",required = true)
    private String phone;
    @NotBlank
    @ApiModelProperty(value = "邮箱",name = "email",example = "14651684@qq.com",required = true)
    private String email;
    @NotBlank
    @ApiModelProperty(value = "性别",name = "gender",example = "0",required = true)
    private Integer gender;
}
